package {
	
	import flash.display.MovieClip;
	
	public class StarSafeZone extends MovieClip {
		
		public var hasAlien:Boolean = false;
		public var alien:Planet;
		
		public function StarSafeZone() {
			
		}
		
		public function isInSafeZone(p:Planet):Boolean {
			if (((p.x - p.radius <= this.x) && (p.x >= this.x - this.width + p.radius))
				&& ((p.y - p.radius <= this.y)) && (p.y >= this.y - this.height + p.radius)) {
				return true;
			} else return false;
		}
		
	}
	
}